package me.zhangsanfeng.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import me.zhangsanfeng.frame.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品信息
 * </p>
 *
 * @author ZhangYao
 * @since 2018-10-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Product对象", description="商品信息")
public class Product extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一标识")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "编码")
    private Integer code;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "类别")
    private Integer type;

    @ApiModelProperty(value = "品牌")
    private Integer brand;

    @ApiModelProperty(value = "最小单位")
    private String minUnit;

    @ApiModelProperty(value = "最大单位")
    private String maxUnit;

    @ApiModelProperty(value = "单位换算比率")
    private Integer unitRatio;


}
